package com.crissy.messageService.service;

import com.crissy.messageService.common.Result;
import com.crissy.messageService.entity.Message;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Crissy-月下闲人
 * @since 2024-03-29
 */
public interface IMessageService extends IService<Message> {

    Result<String> toSubmit(Message message, Message message1);

    Result<List<Message>> toFindByPhone(String phone);

    Result<List<Message>> toFindByName(String name);

    Result<List<Message>> toFindByEmail(String email);

    Result<List<Message>> toFindByIdNumber(String idNumber);

    Result<Message> toFindById(Long id);

    Result<List<Message>> toSearch(String keyword);

    Result<String> toDeleteById(Long id);
}
